<?

/* class te contining base */

class Template extends Response {

	private $filename;
	public $arguments = array();

	public $smarty_path;

	function __construct($filename = 'index.tmpl') {
		$this->filename = $filename;
	}

	function setTemplate($filename) {
		$this->filename = $filename;
	}
	
	function getTemplate() {
		return $this->filename;
	}
	
	function setArg($name,$value) {
		$this->arguments[$name] = $value;
	}
	
	function getArg($name) {
		return $this->arguments[$name];
	}
	
	function getAllArgs() {
		return $this->arguments; 
	}
	
	function setArgs($args) {
		foreach($args as $key => $value ) {
			$this->arguments[$key] = $value;
		}
	}

}
?>